package com.haobangs.imms.controller;


import com.haobangs.imms.service.IAnalysisService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.json.JSONException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;


/**
 *  数据分析Controller
 *
 * @author haobangs
 * @date 2024-03-27
 */
@RestController
@RequestMapping("/imms/analysis")
public class AnalysisContoller extends BaseController
{
    @Autowired
    private IAnalysisService AnalysisService;
    /**
     * 故障种类-次数
     */
    @GetMapping("/get")
    public AjaxResult getList() {
        return (AjaxResult.success(AnalysisService.getFaultHistogram())) ;
//        return AnalysisService.getFaultHistogram();
    }


}
